{%extends 'base.html'%}
{%block title%}登录分享日记{%endblock%}
{%block content%}
<div class='container'>
{%for m in messages%}
	<div class='alter alter-{{m.tags}}' align = right>{{m|safe}}</div>
{%endfor%}
<div class='row'>
	<div class='col-md-12'>
		<div class='panel panel-default'>
			<div class='panel-heading' align=center>
			<h3>张开，我要进去</h3>
	</div>
</div>
<form action='.' method='POST'>
	{%csrf_token%}
		<table>
		{{login_form.as_table}}
		</table>
	<input type = 'submit' value = '登录'><br />
</form>
</div>
{%endblock%}